package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CYearreportholderDao;
import gov.ccswj.modules.ccbusiness.entity.CYearreportholderEntity;
import gov.ccswj.modules.ccbusiness.service.CYearreportholderService;



@Service("cYearreportholderService")
public class CYearreportholderServiceImpl implements CYearreportholderService {
	@Autowired
	private CYearreportholderDao cYearreportholderDao;
	
	@Override
	public CYearreportholderEntity queryObject(Integer id){
		return cYearreportholderDao.queryObject(id);
	}
	
	@Override
	public List<CYearreportholderEntity> queryList(Map<String, Object> map){
		return cYearreportholderDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cYearreportholderDao.queryTotal(map);
	}
	
	@Override
	public void save(CYearreportholderEntity cYearreportholder){
		cYearreportholderDao.save(cYearreportholder);
	}
	
	@Override
	public void update(CYearreportholderEntity cYearreportholder){
		cYearreportholderDao.update(cYearreportholder);
	}
	
	@Override
	public void delete(Integer id){
		cYearreportholderDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cYearreportholderDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cYearreportholderDao.delete(entname);
		
	}
}
